<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
String Mem_Nick = (String)session.getAttribute("Mem_Nick");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="/KOMORIUTA/Applications/Young/Fm_AppYoung.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/board/board_Script.js" type="text/JavaScript"></script>
<style type="text/css">

a:link {COLOR:#f7fff4; TEXT-DECORATION:none}
a:visited{COLOR:#f7fff4; TEXT-DECORATION:none}
a:hover{COLOR:#f7fff4; TEXT-DECORATION:none}
img{border-style:none;}



</style>

    
</head>
<body onload="massageCheck('<%=Mem_Nick%>');">
<input type="hidden" id="idvalue" value="<%=Mem_Nick%>"/>
<script>
table_height = 30; // 테이블 높이를 정한다.

xmenu = new Array;
xsubmenu = new Array;
//타이틀 제목을 써준다
xmenu[0] = '<a href="/KOMORIUTA/MYoungAction.do?"><img src="<%=request.getContextPath()%>/Main/image/blue_home.png"></a>';
xmenu[1] = '<img src="<%=request.getContextPath()%>/Main/image/blue_appli.png">';
xmenu[2] = '<img src="<%=request.getContextPath()%>/Main/image/blue_commu.png">';
xmenu[3] = '<img src="<%=request.getContextPath()%>/Main/image/blue_photo.png">';
xmenu[4] = '<img src="<%=request.getContextPath()%>/Main/image/blue_qna.png">';

xsubmenu[0] = ''
xsubmenu[1] = ''
xsubmenu[2] = ''
xsubmenu[3] = ''
xsubmenu[4] = ''

xsubmenu[0] += '<a href="/KOMORIUTA/MYoungAction.do?"><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_1.png"></a>';

xsubmenu[1] += '<A HREF=javascript:request() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_2.png"></A>';

xsubmenu[2] += '<A HREF=javascript:cm_free_list() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_3_1.png"></A>';
xsubmenu[2] += '<img src="<%=request.getContextPath()%>/Main/YoungMain/images/bar_young.png">'
xsubmenu[2] += '<A HREF=javascript:cm_bc_list() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_3_2.png"></A>';


xsubmenu[3] += '<A HREF=javascript:young_list() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_4_1.png"></A>';
xsubmenu[3] += '<img src="<%=request.getContextPath()%>/Main/YoungMain/images/bar_young.png">'
xsubmenu[3] += '<A HREF=javascript:old_list() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_4_2.png"></A>';
xsubmenu[3] += '<img src="<%=request.getContextPath()%>/Main/YoungMain/images/bar_young.png">'
xsubmenu[3] += '<A HREF=javascript:pt_free_list() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_4_3.png"></A>';

xsubmenu[4] += '<A HREF=javascript:qna_board_qna() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_6_1.png"></A>';
xsubmenu[4] += '<img src="<%=request.getContextPath()%>/Main/YoungMain/images/bar_young.png">'
xsubmenu[4] += '<A HREF=javascript:boardlist() CLASS=menudyn3><img src="<%=request.getContextPath()%>/Main/image/Young_Tab_6_2.png"></A>';

//메뉴에 스타일 시트 적용
document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#f7fff4; text-decoration:none; }\nA:hover.menudyn3 {text-decoration:none;}\n</STYLE>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 width=300 >  <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%>  <TR>');

for(i=0;i<xsubmenu.length;i++){
    document.write('<TD bordercolor="000000" onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><B><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</A></B></TD>');
    }
document.write('</TR>  <TR height=20>    <TD COLSPAN='+(xsubmenu.length)+' BGCOLOR=#0f89d2 HEIGHT='+table_height+'><ilayer id="dynamenu31" width=100% height='+table_height+'><layer id="dynamenu32" width=400px height='+table_height+'><div id="dynamenu33">&nbsp;</div></layer></ilayer></TD>  </TR></TABLE></TD></TR></TABLE>');
// 테이블 끝

// 테이블 백그라운드 컬러 시작

function colorIt(tditem){
    if(document.all){ // 메뉴가 늘어나면 추가한다
    document.all.td0.style.background='#f7fff4';
    document.all.td1.style.background='#f7fff4';
    document.all.td2.style.background='#f7fff4';
    document.all.td3.style.background='#f7fff4';
	document.all.td4.style.background='#f7fff4';
	
        tditem.style.background='#60b615';
        }
else if(document.getElementById)
    { // 메뉴가 늘어나면 추가한다
    document.getElementById("td0").style.background='#f7fff4';
    document.getElementById("td1").style.background='#f7fff4';
    document.getElementById("td2").style.background='#f7fff4';
    document.getElementById("td3").style.background='#f7fff4';
	document.getElementById("td4").style.background='#f7fff4';
    
tditem.style.background='#0f89d2';
    }
}
//테이블 백그라운 컬러 끝
function MajMenu(menu) //타이틀 메뉴를 제어한다
    {
    which = xsubmenu[menu];
if (document.layers){
    document.dynamenu31.document.dynamenu32.document.write('<B>'+which+'</B>')
    document.dynamenu31.document.dynamenu32.document.close()
    }
else if (document.getElementById) // 서브메뉴를 제어한다
            {
            document.getElementById("dynamenu33").innerHTML = '<CENTER><B>'+which+'</B></CENTER>';
            }
else     if (document.all){
    dynamenu33.innerHTML='&nbsp;'
    dynamenu33.innerHTML='<B>'+which+'</B>';
    }
}
if (document.getElementById)
    colorIt(document.getElementById("td0"));
else if (document.all){
    colorIt(document.all.td0);
    }
MajMenu(0);

</script>



</BODY>
</HTML>